package org.imperativetable.render;

import java.io.Writer;
import org.imperativetable.Table;

public interface TableRenderer {

    /*
     * Request parameter names
     */
    public static final String SORTED_COLUMN_PARAMETER_NAME = "it_sort_column";
    public static final String SORTED_ORDER_PARAMETER_NAME = "it_sort_order";
    public static final String PAGE_PARAMETER_NAME = "it_page";
    public static final String FORMAT_PARAMETER_NAME = "it_format";
    /*
     * Format values
     */
    public static final String HTML_FORMAT = "html";
    public static final String CSV_FORMAT = "csv";
    public static final String XML_FORMAT = "xml";
    /*
     * Sort order values
     */
    public static final String SORT_ORDER_ASCENDING = "asc";
    public static final String SORT_ORDER_DESCENDING = "desc";

    public void render(Writer writer, Table table);

}
